import dva from 'dva';
import './index.css';
import createLoading from 'dva-loading';

// 1. Initialize
const app = dva();

app.model(require("./models/user/userInfo"));

app.model(require("./models/device/deviceMgr"));

app.model(require("./models/basic/matMgr"));

app.model(require("./models/basic/execMgr"));

app.model(require("./models/business/traceMgr"));

app.model(require("./models/business/businessMgr"));

app.model(require("./models/main/layoutInfo"));

// 2. Plugins
app.use(createLoading());
// app.use({});

// 3. Model
// app.model(require('./models/example'));

// 4. Router
app.router(require('./router'));

// 5. Start
app.start('#root');
